package com.leenmvc.core.security.entity.core;

import com.leenmvc.core.annotation.DbInfo;
import com.leenmvc.core.annotation.FillField;
import com.leenmvc.core.annotation.PrimaryKey;
import com.leenmvc.core.annotation.TableField;
import com.leenmvc.core.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 菜单权限管理
 *
 * @author zhousc
 */
@DbInfo(value = "sys_menu_permisson", comment = "菜单权限")
public class SysMenuPermisson extends BaseEntity implements Serializable {

	@PrimaryKey
	private Long id;

	/**
	 * 菜单id
	 */
	private Long menuId;

	/**
	 * 权限id
	 */
	private Long permissionId;

	/**
	 * 权限名称
	 */
	@FillField(entity = SysPermission.class,outField="name",inField = "permissionId")
	@TableField(false)
	private String permissionName;


	/**
	 * 更新者
	 */
	private Long updater;
	/**
	 * 更新时间
	 */
	private Date updateDate;



	protected Long creator;

	protected Date createDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Long getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(Long permissionId) {
		this.permissionId = permissionId;
	}

	public Long getUpdater() {
		return updater;
	}

	public void setUpdater(Long updater) {
		this.updater = updater;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getPermissionName() {
		return permissionName;
	}

	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}
}
